﻿
using System.Web.UI;
namespace visinia.SmartEngine
{
    public class BaseAdminPage : UserControl
    {
        public virtual string Translate(string className, string resourceKey)
        {
            object resource = GetGlobalResourceObject(className, resourceKey);
            if (resource != null)
                return resource.ToString();
            return string.Format("[{0}]", resourceKey);
        }
    }        
}
